import type { UseStorageOptions } from '@vueuse/core'

export const useAppLocalStorage = <T>(
  key: MaybeRef<string>,
  defaultValue: MaybeRefOrGetter<T>,
  options?: UseStorageOptions<T> | undefined,
) => {
  const prefix = 'app-'
  return useLocalStorage(prefix + key, defaultValue, options)
}
